<template>
  <div
    style="position: relative; height: 150px; border: 1px solid #ebebeb"
    v-loading="loading"
    loading-text="加载中加载中加载中加载中..."
  ></div>
  <t-button @click="loading = !loading" style="margin-top: 10px"
    >切换加载状态</t-button
  >
</template>

<script setup>
import { ref } from 'vue'
const loading = ref(true)
</script>
